package com.shijie.core.constants;

/**
 * 项目常量
 */
public final class PnConstant {

    private static final String BASE_PACKAGE = "com.shijie";//项目基础包名称，根据自己公司的项目修改

    public static final String MODEL_PACKAGE = BASE_PACKAGE + ".entity";//Model所在包
    public static final String MAPPER_PACKAGE = BASE_PACKAGE + ".mapper";//Mapper所在包

    public static final String MAPPER_INTERFACE_REFERENCE = BASE_PACKAGE + ".core.Mapper";//Mapper插件基础接口的完全限定名

    public static final String SIGNING_KEY = "58bb810a-1844-4eb6-950f-66af684ff516";

    public static final String HEADER_TOKEN_KEY = "%s-token";

    public static final String PARAMETER_TOKEN_KEY = "%s-userToken";

    public static final String SECRET = "e09cc11c-e909-43d4-8c57-5d6a82eac7cb";

    public static final String CACHE_TOKEN_KEY = "token-%s-%s";

    /** 正常状态 */
    public static final String NORMAL = "0";

    /** 异常状态 */
    public static final String EXCEPTION = "1";

    /** 用户封禁状态 */
    public static final String USER_BLOCKED = "1";

    /** 角色封禁状态 */
    public static final String ROLE_BLOCKED = "1";

    /** 部门正常状态 */
    public static final String DEPT_NORMAL = "0";

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;
    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;
    
    public class BusinessType
    {
        /** 新增 */
        public static final String INSERT = "1";
        /** 修改 */
        public static final String UPDATE = "2";
        /** 保存 */
        public static final String SAVE = "3";
        /** 删除 */
        public static final String DELETE = "4";

    }
    public class OperatorType
    {

        /** 后台用户 */
        public static final String ERP = "1";

        /** 手机端用户 */
        public static final String MOBILE = "2";
    }

}
